package com.hqyj.crmdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 何万林
 * @since 2022-10-17
 */
@TableName("sale_chance")
@ApiModel(value = "SaleChance对象", description = "")
public class SaleChance implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("销售机会编号")
    @TableId(value = "sale_id", type = IdType.AUTO)
    private Integer saleId;

    @ApiModelProperty("客户名称")
    private String saleCname;

    @ApiModelProperty("机会来源")
    private String changeSource;

    @ApiModelProperty("联系人")
    private String saleContacts;

    @ApiModelProperty("联系电话")
    private String salePhone;

    @ApiModelProperty("成功率")
    private String saleSuccess;

    @ApiModelProperty("概要(主要情况)")
    private String saleSynopsis;

    @ApiModelProperty("机会描述")
    private String saleDesc;

    @ApiModelProperty("创建人")
    private String saleCreate;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate saleCreatedate;

    @ApiModelProperty("指派给某某")
    private String salaDesignate;

    @ApiModelProperty("指派时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate salaDesignatedate;

    @ApiModelProperty("状态")
    private String salaState;

    public Integer getSaleId() {
        return saleId;
    }

    public void setSaleId(Integer saleId) {
        this.saleId = saleId;
    }

    public String getSaleCname() {
        return saleCname;
    }

    public void setSaleCname(String saleCname) {
        this.saleCname = saleCname;
    }

    public String getChangeSource() {
        return changeSource;
    }

    public void setChangeSource(String changeSource) {
        this.changeSource = changeSource;
    }

    public String getSaleContacts() {
        return saleContacts;
    }

    public void setSaleContacts(String saleContacts) {
        this.saleContacts = saleContacts;
    }

    public String getSalePhone() {
        return salePhone;
    }

    public void setSalePhone(String salePhone) {
        this.salePhone = salePhone;
    }

    public String getSaleSuccess() {
        return saleSuccess;
    }

    public void setSaleSuccess(String saleSuccess) {
        this.saleSuccess = saleSuccess;
    }

    public String getSaleSynopsis() {
        return saleSynopsis;
    }

    public void setSaleSynopsis(String saleSynopsis) {
        this.saleSynopsis = saleSynopsis;
    }

    public String getSaleDesc() {
        return saleDesc;
    }

    public void setSaleDesc(String saleDesc) {
        this.saleDesc = saleDesc;
    }

    public String getSaleCreate() {
        return saleCreate;
    }

    public void setSaleCreate(String saleCreate) {
        this.saleCreate = saleCreate;
    }

    public LocalDate getSaleCreatedate() {
        return saleCreatedate;
    }

    public void setSaleCreatedate(LocalDate saleCreatedate) {
        this.saleCreatedate = saleCreatedate;
    }

    public String getSalaDesignate() {
        return salaDesignate;
    }

    public void setSalaDesignate(String salaDesignate) {
        this.salaDesignate = salaDesignate;
    }

    public LocalDate getSalaDesignatedate() {
        return salaDesignatedate;
    }

    public void setSalaDesignatedate(LocalDate salaDesignatedate) {
        this.salaDesignatedate = salaDesignatedate;
    }

    public String getSalaState() {
        return salaState;
    }

    public void setSalaState(String salaState) {
        this.salaState = salaState;
    }

    @Override
    public String toString() {
        return "SaleChance{" +
            "saleId = " + saleId +
            ", saleCname = " + saleCname +
            ", changeSource = " + changeSource +
            ", saleContacts = " + saleContacts +
            ", salePhone = " + salePhone +
            ", saleSuccess = " + saleSuccess +
            ", saleSynopsis = " + saleSynopsis +
            ", saleDesc = " + saleDesc +
            ", saleCreate = " + saleCreate +
            ", saleCreatedate = " + saleCreatedate +
            ", salaDesignate = " + salaDesignate +
            ", salaDesignatedate = " + salaDesignatedate +
            ", salaState = " + salaState +
        "}";
    }
}
